package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单对象 tb_order
 * 
 * @author ruoyi
 * @date 2020-03-06
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 顾客id */
    @Excel(name = "顾客id")
    private Long bookUserId;

    /** 总额 */
    @Excel(name = "总额")
    private Long totals;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer status;

    /** 付款类型 */
    @Excel(name = "付款类型")
    private Integer payType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setBookUserId(Long bookUserId)
    {
        this.bookUserId = bookUserId;
    }

    public Long getBookUserId() 
    {
        return bookUserId;
    }
    public void setTotals(Long totals)
    {
        this.totals = totals;
    }

    public Long getTotals() 
    {
        return totals;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("bookUserId", getBookUserId())
            .append("totals", getTotals())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("payType", getPayType())
            .toString();
    }
}
